using Nop.Core.Domain.XJ;

namespace Nop.Data.Mapping.XJ
{
	public partial class XJEquipmentCategoryMap : NopEntityTypeConfiguration<XJEquipmentCategory>
	{
		public XJEquipmentCategoryMap()
		{
			this.ToTable("XJEquipmentCategory");
			this.HasKey(c => c.Id);

			this.Property(p => p.Name).IsRequired().HasMaxLength(50);

			this.HasMany(c => c.Places)
				.WithMany()
				.Map(m => m.ToTable("XJEquipmentCategory_XJPlace_Mapping"));
		}
	}
}

